﻿using System;

namespace Gonte.Caching
{
    /// <summary>
    /// Null expiration policy. It does not remove items from the cache
    /// </summary>
    public class NoExpirationPolicy
        : ExpirationPolicy
    {
        #region Overridables

        public override void NotifyItemAdded(string key)
        {
            // Do nothing
        }

        public override void NotifyItemFetched(string key)
        {
            // Do nothing
        }

        public override void NotifyItemSet(string key)
        {
            // Do nothing
        }

        public override void NotifyItemRemoved(string key)
        {
            // Do nothing
        } 

        #endregion
    }
}
